<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Input
 *
 * @author dan
 */
class Input {
    
    private static $instance = null;
    
    private function __construct() {}
    
    /**
     * @return Input
     */
    public static function getInstance(){
        if(self::$instance == null){
            self::$instance = new Input();
        }
        return self::$instance;
    }
    
    public function get($key){
        if(isset($_GET[$key])){
            return $_GET[$key];
        }
        return false;
    }
    
    public function post($key){
        if(isset($_POST[$key])){
            return $_POST[$key];
        }
        return false;
    }
    
}
